home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sports Illustrated Swims… Screen Saver (Alternate)
/
Sports Illustrated Swimsuit Calendar & Screen Saver.iso
/
win31
/
init.inc
< prev
next >
Wrap
Text File
|
1995-05-07
|
17KB
|
357 lines
SUB InitDefaultPaths STATIC
EXE_PATH$ = "EXE_PATH"
PREV_INSTALL$ = "PREV"
SetSymbolValue PREV_INSTALL$, "NO"
WINDRIVE$ = MID$ (WinDir$, 1, 1)
nWinDrive% = ASC (ucase$ (WINDRIVE$)) - ASC ("A") + 1
ini$ = MakePath (GetWindowsDir, "POWERUP.INI")
'' the old smart way
''
'' set CCW's program path
''DEST$ = LCASE$ (GetIniKeyString (ini$, _CCW$, "ProgramPath"))
''IF DEST$ = "" THEN
'' DEST$ = LCASE$ (GetIniKeyString (ini$, "POWERALBUM", "Path"))
''ENDIF
''IF DEST$ = "" THEN
'' DEST$ = LCASE$ (MakePath(RootDir$, _INSTALL_PATH$))
''ELSE
'' ii% = DoesFileExist (MakePath (DEST$,_EXE_NAME$), femExists)
'' szVerStr$ = GetVersionOfFile (MakePath (DEST$, _EXE_NAME$))
'' ver& = GetVersionNthField (szVerStr$, 1)
'' if (ii% = 1) AND (ver& >= 2 ) then
'' SetSymbolValue PREV_INSTALL$, "YES"
'' endif
''ENDIF
''
'' the new way
DEST$ = LCASE$ (MakePath(RootDir$, _INSTALL_PATH$))
'' pick up art directory from POWERUP.INI
''
'' the old way
''DEST_ART$ = LCASE$ (GetIniKeyString (ini$, "ART", "Path"))
''IF DEST_ART$ = "" THEN
'' DEST_ART$ = LCASE$ (MakePath(DEST$, "ART"))
''ENDIF
''
'' the new way
''
DEST_ART$ = LCASE$(MakePath(DEST$, "ART"))
'' pick up graphics filters directory from POWERUP.INI
''
'' the old way
''
'' DEST_FILTERS$ = LCASE$ (GetIniKeyString (ini$, "GRAPHICS FILTERS", "NewPath"))
'' IF DEST_FILTERS$ = "" THEN
'' DEST_FILTERS$ = LCASE$ (GetIniKeyString (ini$, "GRAPHICS FILTERS", "Path"))
'' if DEST_FILTERS$ = "" then
'' DEST_FILTERS$ = LCASE$ (MakePath( DEST$, "FILTERS"))
'' ENDIF
'' ENDIF
''
'' the new way
''
DEST_FILTERS$ = LCASE$ (MakePath( DEST$, "FILTERS"))
SetSymbolValue EXE_PATH$, DEST$
PROGDRIVE$ = MID$ (DEST$, 1, 1)
ARTDRIVE$ = MID$ (DEST_ART$, 1, 1)
FILTERSDRIVE$ = MID$ (DEST_FILTERS$, 1, 1)
END SUB
SUB InitMainDialogSymbols STATIC
STR_REQ$ = "StrSelReq"
STR_AVAIL$ = "StrSelAvail"
DIALOG_LIST$ = "DialogList"
CHK_PROG_FILES$ = "ChkProgFiles"
CHK_STD_EVNT_LST$ = "ChkStdEvntLst"
CHK_INTL_EVNT_LST$ = "ChkIntlEvntLst"
CHK_WORK_SPCS$ = "ChkWorkSpcs"
CHK_CLIP_ART$ = "ChkClipArt"
RAD_ALBUM_ONLY$ = "RadAlbumOnly" '' dfg
RAD_BUILD_ALBUM$ = "RadBuildAlbum"
RAD_ART_ONLY$ = "RadArtOnly"
STR_PROG_PATH$ = "StrProgPath"
STR_CLIP_ART_PATH$ = "StrClipArtPath"
STR_FILTERS_PATH$ = "StrFiltersPath"
STR_REQ_PROG$ = "StrReqProg"
STR_REQ_CLIP_ART$ = "StrReqClipArt"
STR_REQ_FILTERS$ = "StrReqFilters"
STR_AVAIL_PROG$ = "StrAvailProg"
STR_AVAIL_ART$ = "StrAvailArt"
STR_AVAIL_FILTERS$ = "StrAvailFilters"
STR_REQ_PROG2$ = "StrReqProg2"
STR_REQ_SEL$ = "StrReqSEL"
STR_REQ_IEL$ = "StrReqIEL"
STR_REQ_WK_SPC$ = "StrReqWkSpc"
STR_REQ_CLIP_ART2$ = "StrReqClipArt2"
STR_REQ_ART_DLG$ = "STR_REQ_ART_DLG$"
STR_AVAIL_ART_DLG$ = "STR_AVAIL_ART_DLG$"
STR_REQ_GEN$ = "STR_REQ_GEN$"
STR_AVAIL_GEN$ = "STR_AVAIL_GEN$"
SetSymbolValue STR_REQ_ART_DLG$, "0"
SetSymbolValue STR_AVAIL_ART_DLG$, "0"
SetSymbolValue CHK_PROG_FILES$, "ON"
SetSymbolValue CHK_STD_EVNT_LST$, "ON"
SetSymbolValue CHK_INTL_EVNT_LST$, "ON"
SetSymbolValue CHK_WORK_SPCS$, "ON"
SetSymbolValue CHK_CLIP_ART$, "ON"
SetSymbolValue RAD_ALBUM_ONLY$, "ON" '' dfg
SetSymbolValue RAD_BUILD_ALBUM$, "OFF" '' dfg
SetSymbolValue RAD_ART_ONLY$, "OFF"
SetSymbolValue STR_PROG_PATH$, DEST$
SetSymbolValue STR_CLIP_ART_PATH$, DEST_ART$
SetSymbolValue STR_FILTERS_PATH$, DEST_FILTERS$
SetSymbolValue STR_REQ_PROG$, "0"
SetSymbolValue STR_REQ_CLIP_ART$, "0"
SetSymbolValue STR_REQ_FILTERS$, "0"
SetSymbolValue STR_AVAIL_PROG$, "0"
SetSymbolValue STR_AVAIL_ART$, "0"
SetSymbolValue STR_AVAIL_FILTERS$, "0"
SetSymbolValue STR_REQ_PROG2$, "0"
SetSymbolValue STR_REQ_SEL$, "0"
SetSymbolValue STR_REQ_IEL$, "0"
SetSymbolValue STR_REQ_WK_SPC$, "0"
SetSymbolValue STR_REQ_CLIP_ART2$, "0"
END SUB
SUB InitArtDialogSymbols STATIC
DIA_ART$="DiaArtChk"
AddListItem DIALOG_LIST$, DIA_ART$
CHK_ART01$ = "ChkArt01"
AddListItem DIA_ART$, CHK_ART01$ '' add checkbox to dialog list
AddListItem CHK_ART01$, "ON" '' status
AddListItem CHK_ART01$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART01$, "ART01" '' file section in LYT/INF file
AddListItem CHK_ART01$, "301" '' dialog template ID
AddListItem CHK_ART01$, "0" '' disk cost of checked item
AddListItem CHK_ART01$, "alb01.alb" '' name of category album
AddListItem CHK_ART01$, "alb01" '' LYT/INF section for album file
AddListItem CHK_ART01$, "0" '' album cost
AddListItem CHK_ART01$, "ON" '' dfg - default status for reinit
CHK_ART02$ = "ChkArt02"
AddListItem DIA_ART$, CHK_ART02$ '' add checkbox to dialog list
AddListItem CHK_ART02$, "ON" '' status
AddListItem CHK_ART02$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART02$, "ART02" '' file section in LYT/INF file
AddListItem CHK_ART02$, "302" '' dialog template ID
AddListItem CHK_ART02$, "0" '' disk cost of checked item
AddListItem CHK_ART02$, "alb02.alb" '' name of category album
AddListItem CHK_ART02$, "alb02" '' LYT/INF section for album file
AddListItem CHK_ART02$, "0" '' album cost
AddListItem CHK_ART02$, "ON" '' dfg - default status for reinit
CHK_ART03$ = "ChkArt03"
AddListItem DIA_ART$, CHK_ART03$ '' add checkbox to dialog list
AddListItem CHK_ART03$, "ON" '' status
AddListItem CHK_ART03$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART03$, "ART03" '' file section in LYT/INF file
AddListItem CHK_ART03$, "303" '' dialog template ID
AddListItem CHK_ART03$, "0" '' disk cost of checked item
AddListItem CHK_ART03$, "alb03.alb" '' name of category album
AddListItem CHK_ART03$, "alb03" '' LYT/INF section for album file
AddListItem CHK_ART03$, "0" '' album cost
AddListItem CHK_ART03$, "ON" '' dfg - default status for reinit
CHK_ART04$ = "ChkArt04"
AddListItem DIA_ART$, CHK_ART04$ '' add checkbox to dialog list
AddListItem CHK_ART04$, "ON" '' status
AddListItem CHK_ART04$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART04$, "ART04" '' file section in LYT/INF file
AddListItem CHK_ART04$, "304" '' dialog template ID
AddListItem CHK_ART04$, "0" '' disk cost of checked item
AddListItem CHK_ART04$, "alb04.alb" '' name of category album
AddListItem CHK_ART04$, "alb04" '' LYT/INF section for album file
AddListItem CHK_ART04$, "0" '' album cost
AddListItem CHK_ART04$, "ON" '' dfg - default status for reinit
CHK_ART05$ = "ChkArt05"
AddListItem DIA_ART$, CHK_ART05$ '' add checkbox to dialog list
AddListItem CHK_ART05$, "ON" '' status
AddListItem CHK_ART05$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART05$, "ART05" '' file section in LYT/INF file
AddListItem CHK_ART05$, "305" '' dialog template ID
AddListItem CHK_ART05$, "0" '' disk cost of checked item
AddListItem CHK_ART05$, "alb05.alb" '' name of category album
AddListItem CHK_ART05$, "alb05" '' LYT/INF section for album file
AddListItem CHK_ART05$, "0" '' album cost
AddListItem CHK_ART05$, "ON" '' dfg - default status for reinit
CHK_ART06$ = "ChkArt06"
AddListItem DIA_ART$, CHK_ART06$ '' add checkbox to dialog list
AddListItem CHK_ART06$, "ON" '' status
AddListItem CHK_ART06$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART06$, "ART06" '' file section in LYT/INF file
AddListItem CHK_ART06$, "306" '' dialog template ID
AddListItem CHK_ART06$, "0" '' disk cost of checked item
AddListItem CHK_ART06$, "alb06.alb" '' name of category album
AddListItem CHK_ART06$, "alb06" '' LYT/INF section for album file
AddListItem CHK_ART06$, "0" '' album cost
AddListItem CHK_ART06$, "ON" '' dfg - default status for reinit
CHK_ART07$ = "ChkArt07"
AddListItem DIA_ART$, CHK_ART07$ '' add checkbox to dialog list
AddListItem CHK_ART07$, "ON" '' status
AddListItem CHK_ART07$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART07$, "ART07" '' file section in LYT/INF file
AddListItem CHK_ART07$, "307" '' dialog template ID
AddListItem CHK_ART07$, "0" '' disk cost of checked item
AddListItem CHK_ART07$, "alb07.alb" '' name of category album
AddListItem CHK_ART07$, "alb07" '' LYT/INF section for album file
AddListItem CHK_ART07$, "0" '' album cost
AddListItem CHK_ART07$, "ON" '' dfg - default status for reinit
CHK_ART08$ = "ChkArt08"
AddListItem DIA_ART$, CHK_ART08$ '' add checkbox to dialog list
AddListItem CHK_ART08$, "ON" '' status
AddListItem CHK_ART08$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART08$, "ART08" '' file section in LYT/INF file
AddListItem CHK_ART08$, "308" '' dialog template ID
AddListItem CHK_ART08$, "0" '' disk cost of checked item
AddListItem CHK_ART08$, "alb08.alb" '' name of category album
AddListItem CHK_ART08$, "alb08" '' LYT/INF section for album file
AddListItem CHK_ART08$, "0" '' album cost
AddListItem CHK_ART08$, "ON" '' dfg - default status for reinit
CHK_ART09$ = "ChkArt09"
AddListItem DIA_ART$, CHK_ART09$ '' add checkbox to dialog list
AddListItem CHK_ART09$, "ON" '' status
AddListItem CHK_ART09$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART09$, "ART09" '' file section in LYT/INF file
AddListItem CHK_ART09$, "309" '' dialog template ID
AddListItem CHK_ART09$, "0" '' disk cost of checked item
AddListItem CHK_ART09$, "alb09.alb" '' name of category album
AddListItem CHK_ART09$, "alb09" '' LYT/INF section for album file
AddListItem CHK_ART09$, "0" '' album cost
AddListItem CHK_ART09$, "ON" '' dfg - default status for reinit
CHK_ART10$ = "ChkArt10"
AddListItem DIA_ART$, CHK_ART10$ '' add checkbox to dialog list
AddListItem CHK_ART10$, "ON" '' status
AddListItem CHK_ART10$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART10$, "ART10" '' file section in LYT/INF file
AddListItem CHK_ART10$, "310" '' dialog template ID
AddListItem CHK_ART10$, "0" '' disk cost of checked item
AddListItem CHK_ART10$, "alb10.alb" '' name of category album
AddListItem CHK_ART10$, "alb10" '' LYT/INF section for album file
AddListItem CHK_ART10$, "0" '' album cost
AddListItem CHK_ART10$, "ON" '' dfg - default status for reinit
CHK_ART11$ = "ChkArt11"
AddListItem DIA_ART$, CHK_ART11$ '' add checkbox to dialog list
AddListItem CHK_ART11$, "ON" '' status
AddListItem CHK_ART11$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART11$, "ART11" '' file section in LYT/INF file
AddListItem CHK_ART11$, "311" '' dialog template ID
AddListItem CHK_ART11$, "0" '' disk cost of checked item
AddListItem CHK_ART11$, "alb11.alb" '' name of category album
AddListItem CHK_ART11$, "alb11" '' LYT/INF section for album file
AddListItem CHK_ART11$, "0" '' album cost
AddListItem CHK_ART11$, "ON" '' dfg - default status for reinit
CHK_ART12$ = "ChkArt12"
AddListItem DIA_ART$, CHK_ART12$ '' add checkbox to dialog list
AddListItem CHK_ART12$, "ON" '' status
AddListItem CHK_ART12$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART12$, "ART12" '' file section in LYT/INF file
AddListItem CHK_ART12$, "312" '' dialog template ID
AddListItem CHK_ART12$, "0" '' disk cost of checked item
AddListItem CHK_ART12$, "alb12.alb" '' name of category album
AddListItem CHK_ART12$, "alb12" '' LYT/INF section for album file
AddListItem CHK_ART12$, "0" '' album cost
AddListItem CHK_ART12$, "ON" '' dfg - default status for reinit
CHK_ART13$ = "ChkArt13"
AddListItem DIA_ART$, CHK_ART13$ '' add checkbox to dialog list
AddListItem CHK_ART13$, "ON" '' status
AddListItem CHK_ART13$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART13$, "ART13" '' file section in LYT/INF file
AddListItem CHK_ART13$, "313" '' dialog template ID
AddListItem CHK_ART13$, "0" '' disk cost of checked item
AddListItem CHK_ART13$, "alb13.alb" '' name of category album
AddListItem CHK_ART13$, "alb13" '' LYT/INF section for album file
AddListItem CHK_ART13$, "0" '' album cost
AddListItem CHK_ART13$, "ON" '' dfg - default status for reinit
CHK_ART14$ = "ChkArt14"
AddListItem DIA_ART$, CHK_ART14$ '' add checkbox to dialog list
AddListItem CHK_ART14$, "ON" '' status
AddListItem CHK_ART14$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART14$, "ART14" '' file section in LYT/INF file
AddListItem CHK_ART14$, "314" '' dialog template ID
AddListItem CHK_ART14$, "0" '' disk cost of checked item
AddListItem CHK_ART14$, "alb14.alb" '' name of category album
AddListItem CHK_ART14$, "alb14" '' LYT/INF section for album file
AddListItem CHK_ART14$, "0" '' album cost
AddListItem CHK_ART14$, "ON" '' dfg - default status for reinit
CHK_ART15$ = "ChkArt15"
AddListItem DIA_ART$, CHK_ART15$ '' add checkbox to dialog list
AddListItem CHK_ART15$, "ON" '' status
AddListItem CHK_ART15$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART15$, "ART15" '' file section in LYT/INF file
AddListItem CHK_ART15$, "315" '' dialog template ID
AddListItem CHK_ART15$, "0" '' disk cost of checked item
AddListItem CHK_ART15$, "alb15.alb" '' name of category album
AddListItem CHK_ART15$, "alb15" '' LYT/INF section for album file
AddListItem CHK_ART15$, "0" '' album cost
AddListItem CHK_ART15$, "ON" '' dfg - default status for reinit
CHK_ART16$ = "ChkArt16"
AddListItem DIA_ART$, CHK_ART16$ '' add checkbox to dialog list
AddListItem CHK_ART16$, "ON" '' status
AddListItem CHK_ART16$, "ON" '' temp status -- used for dialogs
AddListItem CHK_ART16$, "ART16" '' file section in LYT/INF file
AddListItem CHK_ART16$, "316" '' dialog template ID
AddListItem CHK_ART16$, "0" '' disk cost of checked item
AddListItem CHK_ART16$, "alb16.alb" '' name of category album
AddListItem CHK_ART16$, "alb16" '' LYT/INF section for album file
AddListItem CHK_ART16$, "0" '' album cost
AddListItem CHK_ART16$, "ON" '' dfg - default status for reinit
END SUB
SUB ReInitArtDialogSymbols STATIC
'' get the cost of the CLIP ART
j% = GetListLength (DIA_ART$)
FOR i% = 1 to j% STEP 1
szChkSym$ = GetListItem (DIA_ART$, i%)
szDefaultStatus$ = GetListItem (szChkSym$, DEFAULT_STATUS)
ReplaceListItem szChkSym$, STATUS, szDefaultStatus$
NEXT i%
END SUB
''FUNCTION GetAlbumName STATIC AS STRING
'' '' get the name of the one and only album selected
'' j% = GetListLength (DIA_ART$)
'' FOR i% = 1 to j% STEP 1
'' szChkSym$ = GetListItem (DIA_ART$, i%)
'' szStatus$ = GetListItem (szChkSym$, STATUS)
'' IF (szStatus$ = _ON$) THEN
'' GetAlbumName = GetListItem (szChkSym$, ALBUM)
'' ENDIF
'' NEXT i%
''END FUNCTION
FUNCTION GetDriveName(szPath$) STATIC AS STRING
szTemp$ = szPath$
x% = INSTR(szPath$, ":")
if x%>0 then
szTemp$ = MakePath (MID$ (szPath$, 1, x%), "")
endif
GetDriveName = szTemp$
END FUNCTION